package com.jackson.passjava.multi.feign;

import com.jackson.passjava.common.utils.R;
import com.jackson.passjava.order.entity.OrderEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/8/24 17:06
 */
@FeignClient("passjava-order")
public interface OrderFeign {
    /**
     * 信息
     */
    @RequestMapping("/order/order/info/{id}")
    public R info(@PathVariable("id") Integer id);

    @RequestMapping("/order/order/save")
    public R save(@RequestBody OrderEntity orderEntity);
}
